<template>
  <!-- 使用 <router-view></router-view> 来嵌套路由 -->
  <router-view >
  </router-view>
</template>

<script>
export default {
  name: 'app',
    provide (){
     return {
       reload:this.reload
     }
  },
    data(){
    return {
       isRouterAlive:true
    }
  },
  methods:{
    reload (){
       this.isRouterAlive = false
       this.$nextTick(function(){
          this.isRouterAlive = true
       })
    }
  },
    components:{
  }
}
</script>

<style>
html, body {
  margin: 0;
  height: 100%;
}
#app{
  height: 100%;
}
</style>
